package cn.micai.base.string;

/**
 * 描述：
 * <p>
 *
 * @author: 赵新国
 * @date: 2018/6/11 11:07
 */
public class StringTrimExample {

    public static void main(String [] args) {

        String str = " Hello world from  ";

        // without trim()
        System.out.println(str + "java2blog.com");

        // with trim()
        System.out.println(str.trim() + "java2blog.com");

    }
}
